package com.wntms.auser.exceptions;


import com.wntms.gps.pojo.Result;
import org.springframework.web.bind.annotation.ExceptionHandler;
import org.springframework.web.bind.annotation.RestControllerAdvice;

//@RestControllerAdvice
public class ExceptionResolver {
//    @ExceptionHandler
    public Result doException(Exception e) {
        return Result.error(e.getMessage());
    }
}
